<%@ page import="java.util.*" pageEncoding="utf-8" %>
<%@include file="/commons/taglibs.jsp" %>
<!DOCTYPE html>
<html>
<fmt:bundle basename="res"><html>
<head>
    <meta charset="utf-8">
    <title><fmt:message key='pjxq'/></title>
    <jsp:include page="/WEB-INF/commons/commons-header.jsp" flush="true"/>
    <style>
        html {
            background: #fff;
        }

        .layui-form .layui-input-inline {
            line-height: 38px;
        }
    </style>
</head>

<body>


<div class="layui-container">
    <div class="layui-form" lay-filter="layuiadmin-app-form-list" id="layuiadmin-app-form-list" style="padding: 20px 30px 0 0;">

        <div class="layui-form-item">
            <label for="" class="layui-form-label"><fmt:message key='nc'/></label>
            <div class="layui-input-inline" style="width: 70%">${goodsComment.member.nickname}</div>
        </div>

        <div class="layui-form-item">
            <label for="" class="layui-form-label"><fmt:message key='sjhm'/></label>
            <div class="layui-input-inline" style="width: 70%">${goodsComment.member.mobile}</div>
        </div>

        <div class="layui-form-item">
            <label for="" class="layui-form-label"><fmt:message key='pjnr'/></label>
            <div class="layui-input-inline" style="width: 70%">${goodsComment.content}</div>
        </div>

        <div class="layui-form-item">
            <label for="" class="layui-form-label"><fmt:message key='pjsj'/></label>
            <div class="layui-input-inline" style="width: 70%"><fmt:formatDate value="${goodsComment.createTime}" type="both"/></div>
        </div>

        <div class="layui-form-item">
            <label for="" class="layui-form-label"><fmt:message key='sjmc'/></label>
            <div class="layui-input-inline" style="width: 70%">${goodsComment.merchant.realName}</div>
        </div>

        <div class="layui-form-item">
            <label for="" class="layui-form-label"><fmt:message key='spmc'/></label>
            <div class="layui-input-inline" style="width: 70%">${goodsComment.goods.name}</div>
        </div>

        <div class="layui-form-item">
            <label for="" class="layui-form-label"><fmt:message key='sppf'/></label>
            <div class="layui-input-inline" style="width: 70%">
                <c:if test="${goodsComment.starLever == 1}"><fmt:message key='fcc'/></c:if>
                <c:if test="${goodsComment.starLever == 2}"><fmt:message key='c1'/></c:if>
                <c:if test="${goodsComment.starLever == 3}"><fmt:message key='yb'/></c:if>
                <c:if test="${goodsComment.starLever == 4}"><fmt:message key='h'/></c:if>
                <c:if test="${goodsComment.starLever == 5}"><fmt:message key='fch'/></c:if>
            </div>
        </div>

        <div class="layui-form-item">
            <label for="" class="layui-form-label"><fmt:message key='tp'/></label>
            <div class="layui-input-inline" style="width: 70%">
                <c:forEach var="item" items="${goodsComment.images}">
                    <img class="preview" src="${store_domain}/uploads/${item.name}" style="height: 120px; margin: 10px 10px 0 0;">
                </c:forEach>
            </div>
        </div>


        <div class="layui-form-item">
            <label for="" class="layui-form-label"><fmt:message key='zt'/></label>
            <div class="layui-input-inline" style="width: 70%">
                <c:if test="${goodsComment.status != 2}"><fmt:message key='yxj'/></c:if>
                <c:if test="${goodsComment.status == 2}"><fmt:message key='ysj'/></c:if>
            </div>
        </div>


    </div>
</div>


<script>

    layui.use(['form'], function () {
        var form = layui.form;
    });
</script>
</body>
</fmt:bundle>
</html>